<?php
global $GLOBALS;
$config = array();
$config['website'] = '../config/kp.website.config';
$config['database'] = '../config/kp.database.config';
$config['contact'] = '../config/kp.contact.config';
$config['email'] = '../config/kp.email.config';
foreach($config as $offset => $cfg)
{
	$para = file_get_contents($cfg);
	$para = unserialize($para);
	extract($para);
}
$GLOBALS['database']['dbtype'] = $cfg_dbtype;
$GLOBALS['database']['dbserver'] = $cfg_dbserver;
$GLOBALS['database']['dbname'] = $cfg_dbname;
$GLOBALS['database']['dbuser'] = $cfg_dbuser;
$GLOBALS['database']['dbpass'] = $cfg_dbpass;
$GLOBALS['database']['dbpre'] = $cfg_dbpre;

foreach(array('_GET','_POST','_FILES') as $_request)
{
	foreach($$_request as $k => $t) ${$k} = $t;
}
include('config/kp.mysql.php');
include('config/kp.kernel.php');

?>